{extend name="/base" /}

{block name="main"}
<div class="col-md-10">
  <div class="row">
    <!-- <div class="col-md-12">
      <a href="{:url('activity/add')}" class="btn btn-info m-1 float-right" role="button">添加活动</a>
    </div> -->

  </div>
  <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-body">
          <table class="table table-hover">
            <thead>
              <tr>
                <th>标题</th>
                <th>图片</th>
                <th>浏览量</th>
                <th>收藏量</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              {volist name ="res" id="vo"}
              <tr>
                <td>{$vo.title}</td>
                <td>{$vo.pic}</td>
                <td>{$vo.view}</td>
                <td>{$vo.collect}</td>
                <td>
                  <div class="btn-group">
                    <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                      操作
                      <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu pull-right">
                      <li><a href="{:url('activity/update',['activity_id'=>$vo.activity_id])}"><i class="icon-trash"></i>
                          修改</a>
                      <li><a href="{:url('activity/delete',['activity_id'=>$vo.activity_id])}"><i class="icon-trash"></i>
                          删除</a>
                      </li>
                    </ul>
                  </div>
                </td>
              </tr>
              {/volist}
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>

</div>
{/block}